package com.kinghood.authoritycenter.common.model.vo.sys;

import com.kinghood.authoritycenter.common.model.dao.sys.SysLogDO;
import com.kinghood.infrastructure.api.authority.SysLogModuleEnum;
import lombok.Data;

import java.io.Serializable;
import java.util.Objects;

/**
 * description
 *
 * @author zhangFanJun
 * @date 2024-01-03 10:35
 **/
@Data
public class QueryLogPageVO extends SysLogDO implements Serializable {

    private String userName;

    private String moduleName;

    public void handleModuleName(){
        if(Objects.isNull(this.getModule())){
            return ;
        }
        moduleName = SysLogModuleEnum.getNameByType(this.getModule());
    }
}
